package middlecontent.loader;

import sun.misc.Launcher;
//import sun.security.util.CurveDB;

import java.net.URL;
import java.security.Provider;

/**
 * @Author: fxy
 * @Date: 2022/02/08/14:52
 * @Description:
 */
public class ClassLoaderTest1 {
    public static void main(String[] args) {
        System.out.println("*****************启动类加载器****************");
        URL[] urls = Launcher.getBootstrapClassPath().getURLs();
        for (URL element : urls) {
            System.out.println(element.toExternalForm());
        }
        ClassLoader classLoader = Provider.class.getClassLoader();
        System.out.println(classLoader);

        System.out.println("**************扩展类加载器***************");
        String extDirs = System.getProperty("java.ext.dirs");
        for(String path:extDirs.split(";")){
            System.out.println(path);
        }
        //ClassLoader classLoader1 = CurveDB.class.getClassLoader();
        //System.out.println(classLoader1);
    }
}
